package com.zbl.zblproject.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbl.zblproject.erp.entity.ErpHistoryGoodsPrice;
import com.zbl.zblproject.erp.entity.ErpPrice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/4/24
 */
@Repository
public interface PriceMapper extends BaseMapper<ErpPrice> {
    int insertHistoryGoodsPrice(ErpHistoryGoodsPrice erpHistoryGoodsPrice);

    int insertPrice(ErpPrice erpPrice);

    long selectById(@Param("priceSn") String priceSn);

    List<ErpPrice> selectPriceAll();

    List<ErpHistoryGoodsPrice> selectByPriceId(@Param("priceId") long priceId);


    List<ErpPrice> selectPriceByPriceSn(@Param("priceSn")String priceSn);
}
